#!/usr/bin/env bash
pt="$1"
echo "pt is $pt"
if [ $pt == "buff" ]; then
    sudo yum -y install python-pip
    pip install kafka-python
    cp buff.service /etc/systemd/system/buff.service
    systemctl daemon-reload
    systemctl enable buff
    systemctl start buff
elif [ $pt == "c5game" ]; then
    cp c5game.service /etc/systemd/system/c5game.service
    systemctl daemon-reload
    systemctl enable c5game
    systemctl start c5game
fi

